package wicket.example.components.table;

import org.apache.wicket.Component;
import org.apache.wicket.model.IModel;
import org.apache.wicket.util.io.IClusterable;

public abstract class DataTableColumn<T> implements IClusterable
{

   private static final long serialVersionUID = 1L;
   
   private final IModel<String> displayModel;

   public DataTableColumn(final IModel<String> displayModel)
   {
      this.displayModel = displayModel;
   }

   public IModel<String> getDisplayModel()
   {
      return displayModel;
   }

   public abstract Component getComponent(IModel<T> model);

}
